
public class CommunityChest extends Cards{
	


public CommunityChest(Players[] player) {
		super(player);

	}

public void generateCard(int x,int turn){
	System.out.println(x+" asd "+ turn);

	
	if(x==2){//every one must donate 10%

	}
	if(x==3){//were of gold standard collect 50
		players[turn].setMoney(50);
	}
	if(x==4){//pay hospital 100
		players[turn].setMoney(-100);
	}
	if(x==5){// recieve for service
		players[turn].setMoney(25);
	}
	if(x==6){//doctors fee
		players[turn].setMoney(-50);
	}
	if(x==7){//bank error in your favor collect 200
	players[turn].setMoney(200);
	}
	if(x==8){//life insurance mature collect 100
		players[turn].setMoney(100);
	}
	if(x==10){//from sale of stock collect 45
	players[turn].setMoney(45);
	}
	if(x==11){//income tax refund
		players[turn].setMoney(20);
	}
	if(x==13){//second price in beauty contest collect 11
		players[turn].setMoney(11);
	}
	if(x==14){//inherit 100
		players[turn].setMoney(100);
	}
	if(x==15){//Grand opera opening
	
	for(int i=0;i<players.length;i++){
	if(i!=turn){
		players[i].setMoney(-50);
		players[turn].setMoney(50);
	}
	}
	}
}

}